import React from 'react'
import { Switch,ConfigProvider } from 'antd';
import zh_CN from 'antd/es/locale/zh_CN';
import SelectTime from './selectTime.jsx'
export default class Menu_demo extends React.Component{
    state={
        theme:'dark',
    }
    changeTheme(value){
        this.setState({theme:value?'dark':'light'})
    }
    render(){
        let {theme}=this.state
        return (
            <div className="Menu_demo">
                <h1>menu导航菜单</h1>
                <Switch checked={theme=='dark'} onChange={this.changeTheme.bind(this)} checkedChildren="Dark" unCheckedChildren="Light"></Switch>
                <br/>
                <ConfigProvider locale={zh_CN}>
                    <SelectTime/>
                </ConfigProvider>
            </div>
        )
    }
}